// pages/pay/order/index.js
const App = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    info:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.orderInfo(options.id)
  },
  orderInfo(id){
    let _this = this
    App._get('Pay/orderInfo', {id:id}, function(result) {
      _this.setData(result.data)
    });
  },
  points(){
    wx.reLaunch({
      url: '/pages/points/log/index',
    })
  }
})